package com.tfswx.fljdmxyy.enums;

/**
 * 业务异常代码
 *
 * @Author 陈文佳
 * @Date 2023/03/24
 */
public enum BusinessCodeEnum {
    TJSB(20101, "数据已存在"),
    XGSB(20102, "未找到需要修改数据"),
    SCSB(20103, "未找到需要删除数据"),
    DCWSJ(20104, "暂无数据，无法导出。"),
    HQQXSB(20105, "查无此人！请检查参数是否正确或是否已授权"),
    CXSB(20106, "暂无数据，无法获取。"),
    DCSB(20107, "导出失败"),
    TBSB(20108, "未找到需要同步的数据"),
    WJWZD(20109, "文件未找到"),
    HQMBSB(20110, "获取模板失败"),
    BCWJSB(20111, "保存文件失败"),
    TJSJSB(20112, "添加数据失败"),
    XGSJSB(20113, "修改数据失败"),
    SCSJSB(20114, "删除数据失败"),
    HQSJSB(20115, "获取数据失败"),
    XZWJSB(20116, "下载文件失败"),
    CJWJJSB(20117, "创建文件夹失败"),
    ;

    private final Integer code;
    private final String message;

    BusinessCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}